<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>订单列表</title>
    <link rel="stylesheet" href="__CSS__/pintuer.css">
    <link rel="stylesheet" href="__CSS__/admin.css">
    <script src="__JS__/jquery.js"></script>
    <script src="__JS__/pintuer.js"></script>
    <style>
        .dataTables_paginate{text-align:center;margin-top:20px;margin-bottom: 20px;}
        .pagination li{margin:0px 10px; border:1px solid #D200D2;padding: 3px 8px;display: inline-block;}
        .pagination .active{background-color: rgba(35,162,219,0.98);color: 	#FF359A;}
        .pagination .disabled{color:	#00DB00;}
    </style>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
        <ul class="search" style="padding-left:10px;">
            <li> <a class="button border-main icon-plus-square-o" href="<{:url('admin/Prop/addprop')}>"> 添加内容</a> </li>
            <form action="" id="F">
                <li>
                    {foreach name="prop_value_arr" item="vo"}
                    <label><input type="checkbox" name="prop_value[]" value="<{$vo.vid}>" {in name="$vo.vid" value="$prop_value"}checked{/in}> <{$vo.prop_value}></label>　
                    {/foreach}
                </li>
                <li>
                    <input type="text" placeholder="请输入属性名" name="keywords" value="<{$keywords|default=''}>" class="input" style="width:200px; line-height:17px;display:inline-block" />
                    <a href="javascript:F.submit();" class="button border-main icon-search" > 搜索</a></li>
        </ul>
        </form>
    </div>
    <table class="table table-hover text-center">
        <tr>
            <th width="100" style="text-align:left; padding-left:20px;">ID</th>
            <th width="15%">属性名称</th>
            <th>属性值</th>
            <th>属性值中文</th>
            <th>排序</th>
            <th>有效</th>
            <th width="310">操作</th>
        </tr>

            {volist name="list" id="vo" empty="$empty"}
        <tr>
            <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id[]" value="<{$vo['pid']}>" /><{$vo['pid']}></td>
            <td><{$vo['pname']|raw}></td>
            <td><{$vo['pvalues']}></td>
            <td><{$vo['pvalues_zh']}></td>
            <td><{$vo['sort_order']}></td>
            <td><font color="#00CC99"><{$vo['status']?'启用':'禁用'}></font></td>
            <td><div class="button-group"> <a class="button border-main" href="<{:url('editprop',['id'=>$vo['pid']])}>"><span class="icon-edit"></span> 修改</a> <a class="button border-red" href="javascript:void(0)" onclick="return del(1,1,1)"><span class="icon-trash-o"></span> 删除</a> </div></td>
        </tr>
        {/volist}


        <td style="text-align:left; padding:19px 0;padding-left:20px;"><input type="checkbox" id="checkall"/>
            全选 </td>
        <td colspan="9" style="text-align:left;padding-left:20px;"><a href="javascript:void(0)" class="button border-red icon-trash-o" style="padding:5px 15px;" onclick="DelSelect()"> 删除</a> <a href="javascript:void(0)" style="padding:5px 15px; margin:0 10px;" class="button border-blue icon-edit" onclick="sorts()"> 排序</a> 操作：
            <select name="ishome" style="padding:5px 15px; border:1px solid #ddd;" onchange="changeishome(this)">
                <option value="">首页</option>
                <option value="1">是</option>
                <option value="0">否</option>
            </select>
            <select name="isvouch" style="padding:5px 15px; border:1px solid #ddd;" onchange="changeisvouch(this)">
                <option value="">推荐</option>
                <option value="1">是</option>
                <option value="0">否</option>
            </select>
            <select name="istop" style="padding:5px 15px; border:1px solid #ddd;" onchange="changeistop(this)">
                <option value="">下架</option>
                <option value="1">是</option>
                <option value="0">否</option>
            </select>
        </td>
        </tr>
        <!--
      <tr>
        <td colspan="9"><div class="pagelist"> <a href="">上一页</a> <span class="current">1</span><a href="">2</a><a href="">3</a><a href="">下一页</a><a href="">尾页</a> </div></td>
      </tr>
        -->
        <tr>
            <td colspan="9">  </td>
        </tr>
    </table>
    <{$list|raw}>
</div>
<script type="text/javascript">